New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1560] Feature/intermediate representation data format #1561
[#1560] Feature/intermediate representation data format #1561
Conversation
Merge current master
…rializer and detect converter capabilities, fix AxonFramework#1560
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of small pointers, although in general I think this is good.
...in/java/org/axonframework/serialization/upcasting/event/IntermediateEventRepresentation.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/serialization/upcasting/event/IntermediateEventRepresentation.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/serialization/upcasting/event/IntermediateEventRepresentation.java
Outdated
Show resolved
Hide resolved
...est/java/org/axonframework/serialization/upcasting/event/IntermediateRepresentationTest.java
Outdated
Show resolved
Hide resolved
...est/java/org/axonframework/serialization/upcasting/event/IntermediateRepresentationTest.java
Outdated
Show resolved
Hide resolved
...est/java/org/axonframework/serialization/upcasting/event/IntermediateRepresentationTest.java
Outdated
Show resolved
Hide resolved
…ing/event/IntermediateEventRepresentation.java Co-authored-by: Steven van Beelen <steven.vanbeelen@axoniq.io>
…ing/event/IntermediateEventRepresentation.java Co-authored-by: Steven van Beelen <steven.vanbeelen@axoniq.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor change request.
Also, we need to decide whether it's a good idea to expose the Serializer. After our discussion on discuss.axoniq.io, I am not too sure we should do it :)
...rc/main/java/org/axonframework/serialization/upcasting/event/InitialEventRepresentation.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/axonframework/serialization/upcasting/event/InitialEventRepresentation.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/serialization/upcasting/event/IntermediateEventRepresentation.java
Outdated
Show resolved
Hide resolved
@abuijze you are probably right, there is no reason to have it inside the upcaster. And if you need it, you can access it via Injection... So I removed the access method and the test... |
...rc/main/java/org/axonframework/serialization/upcasting/event/InitialEventRepresentation.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New concern around the test class. Otherwise I think we're going the right way.
...in/java/org/axonframework/serialization/upcasting/event/IntermediateEventRepresentation.java
Outdated
Show resolved
Hide resolved
...est/java/org/axonframework/serialization/upcasting/event/IntermediateRepresentationTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My concerns have been addressed, hence approving.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request fixes #1560 and provides the ability to ask the
IntermediateEventRepresentation
for theSerializer
and if its data can be converted to a target format.This is useful if you want to detect if the Upcaster can upcast an event which is serialized in a certain way.
See https://discuss.axoniq.io/t/upcasters-for-json-and-xml/2799 for more details.